---
title: Imagemagick plugin causing PHP slowdown
author: notabug.org/aab
time: Wed, 20 Nov 2019 10:36:47 UTC
status: open
---

author: notabug.org
time: Wed, 20 Nov 2019 10:36:47 UTC
content: -----
When using the plugin as indicated in the README: $config['thumbnail']['animated'] = true; addPlugin('ImageMagick'); the following error appears on apache log: Got error 'PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/plugins/ImageMagick/ImageMagickPlugin.php on line 95', I've got it enabled this way for several months (and it was working fine, i could see some animated avatars), but only yesterday it started to cause problems: site was not accessible. When removing the fist line, everything seeems to work fine again.
-----

author: notabug.org
time: Wed, 20 Nov 2019 23:04:45 UTC
content: -----
<xmpp-gnu> [XRevan86] Maybe deconstructImages swallowed everything and then fopen pushed just enough to exceed the threshold <xmpp-gnu> [XRevan86] Either way it's one darn big gif <includeals> yeah, if it works for everything else <includeals> I guess the solution would be the same applied to the media system <includeals> setting different limits <xmpp-gnu> [XRevan86] Another suggestion (complementary): forcefully convert gifs to webp's if they're animated <xmpp-gnu> [XRevan86] when making thumbnails that is <xmpp-gnu> [XRevan86] so an original gif → animated webp thumbnai
-----

author: notabug.org
time: Fri, 24 Jan 2020 11:00:55 UTC
content: -----
I reenabled the plugin (just as before), and it's been behaving correctly for a week or so. I won't close this report just in case there's something else diogo or biodantas want to add.
-----

author: notabug.org
time: Fri, 17 Jul 2020 10:12:03 UTC
content: -----
I've had this plugin installed and working fine all these months. As a curiosity, i'm not using the "animated" part, although some avatars are animated.
-----

author: notabug.org
time: Wed, 05 Aug 2020 17:05:16 UTC
content: -----
This is tracked by kanban v2 task number number 19, originally assigned to @someonewithpc, currently being done by @tenma .
-----
